package com.sskj.wallet.bean;

import com.sskj.lib.util.TimeFormatUtil;

import java.io.Serializable;
import java.util.Date;

public class TransferRecordBean implements Serializable {

    /**
     * id : 3
     * from_address : 0x26efe73d34c6bb41cbfc28134053a8a45c7b92bc
     * to_address : 0x4d59dcf9409c52847c8765807796910bf20af851
     * hash : 0x12b74e2fa0a01a213b9bf807c60fb02e8162d10aefe32274bb90af39b0987206
     * price : 0.0010
     * type : 2
     * ptype : ETH
     * memo : ETH转账
     * addtime : 1528319937
     * state : 2
     * dtime : 2019-06-05
     * mtime : 2019-06
     */

    private String id;
    private String from_address;
    private String to_address;
    private String hash;
    private String price;
    private String type;
    private String ptype;
    private String memo;
    private String addtime;
    private String state;
    private String dtime;
    private String mtime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFrom_address() {
        return from_address;
    }

    public void setFrom_address(String from_address) {
        this.from_address = from_address;
    }

    public String getTo_address() {
        return to_address;
    }

    public void setTo_address(String to_address) {
        this.to_address = to_address;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getAddtime() {
        return TimeFormatUtil.SF_FORMAT_E.format(new Date(Long.valueOf(addtime) * 1000));
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDtime() {
        return dtime;
    }

    public void setDtime(String dtime) {
        this.dtime = dtime;
    }

    public String getMtime() {
        return mtime;
    }

    public void setMtime(String mtime) {
        this.mtime = mtime;
    }
}
